package demo516;

import java.util.ArrayList;
import java.util.List;

public class Test {public static void main(String[] args) {
    Emp emp1 = new Emp("1003","熊二",10);
    emp1.setNumber("1001");
    emp1.setName("光头强");
    emp1.setAge(28);

    Emp emp2 = new Emp("1003","熊二",10);
    emp1.setNumber("1002");
    emp1.setName("熊大");
    emp1.setAge(11);
    Emp emp3 = new Emp("1003","熊二",10);
    System.out.println(emp3.getNumber());
    System.out.println(emp3.getName());
    System.out.println(emp3.getAge());


    List<Emp> list = new ArrayList<>();
    list.add(emp1);
    list.add(emp2);
    list.add(emp3);

}

}


